package cn.tedu.coolshark.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Product {
    @ApiModelProperty(value = "商品id")
    private Integer id;
    @ApiModelProperty(value = "商品标题")
    private String title;
    @ApiModelProperty(value = "商品图片url")
    private String url;
    @ApiModelProperty(value = "商品价格")
    private Double price;
    @ApiModelProperty(value = "商品原价")
    private Double oldPrice;
    @ApiModelProperty(value = "商品销量")
    private Integer saleCount;
    @ApiModelProperty(value = "商品库存")
    private Integer num;
    @ApiModelProperty(value = "商品分类id")
    private Integer categoryId;
    @ApiModelProperty(value = "商品浏览量")
    private Integer viewCount;
    @ApiModelProperty(value = "商品创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date created;
}
